/*
 * @Descripttion: GGB
 * @version: 1.0
 * @Author: GGB
 * @Date: 2021-08-06 07:42:26
 * @LastEditors: GGB
 * @LastEditTime: 2021-08-24 10:53:42
 */
import 'package:flutter/material.dart';

class NoticeItem extends StatelessWidget {
  const NoticeItem({Key key, this.time = "", this.content = ''})
      : super(key: key);
  final String time;
  final String content;

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(
          flex: 2,
          child: Align(
            alignment: Alignment.centerRight,
            child: Text(
              time,
              style: TextStyle(
                color: Colors.brown[500],
                fontSize: 20,
              ),
            ),
          ),
        ),
        SizedBox(width: 16),
        Expanded(
          flex: 8,
          child: Text(
            content,
            overflow: TextOverflow.ellipsis,
            style: TextStyle(
              fontSize: 20,
            ),
          ),
        ),
      ],
    );
  }
}
